cmake_minimum_required(VERSION 3.30.5)
project(Interview)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if(MSVC)
    add_compile_options(/utf-8)
endif()
#set(CMAKE_PREFIX_PATH C:/Qt/6.5.3/msvc2019_64)
set(CMAKE_PREFIX_DIR [[D:\Qt\build\qt-5.15.0-windows-x64-msvc64\bin]])
find_package(Qt5 COMPONENTS
        Core
        Widgets
        Gui
  REQUIRED)

add_executable(Interview main.cpp
        MainWidget.cpp
        MainWidget.h
        MainWidget.ui
        MyWidget.cpp
        MyWidget.h
        MyWidget.ui
        common/include/pub.h
        common/include/sub.h

)
target_include_directories(
        ${PROJECT_NAME}
        PRIVATE
        .
        common/include
        [[C:\Users\32617\Desktop\uDDS_VS2017_Trial\uDDS_VS2017\include]]
)
target_link_directories(
        ${PROJECT_NAME}
        PRIVATE
        common/lib
)
target_link_libraries(Interview
        Qt5::Core
        Qt5::Widgets
        Qt5::Gui
        sub.lib
        pub.lib
)

